export default function(att, a, b, resAtt) {
    let res = null;
    for (let i = 0; i < a.length; i++) {
        let item = a[i]
        if (item[att] == b) {
            res = item[resAtt]
            break
        }
    }
    return res
}